#!/bin/sh

# Copyright(c) 2011 OpenDomo Services SL. Licensed under GPL v3 or later
# Isidro Catalan <skarvin@gmail.com>


# ----------------------------------------------------------------------------
# desc: Fichero ejecutado por udev para la configuracion automatica de la camara insertada
# author: Isidro Catalan <skarvin@gmail.com>, http://www.opendomo.com
# date: October 2008
#
# CHANGES:
#
# ----------------------------------------------------------------------------

# grab information about device
CONFIG_GEN="/usr/local/opendomo/odvideo-utils/motionConfGen.sh"

# insertion
if [ "$ACTION" = "add" ]; then
   $CONFIG_GEN usb $ACTION $K_NUM
# removing
elif [ "$ACTION" = "remove" ]; then
   $CONFIG_GEN usb $ACTION $K_NUM
fi

return 0


